package com.workingpub.commons.orm;

import java.util.List;

import com.workingpub.commons.domain.Identifiable;

/**
 * 基于JPA注解解析，将实体对象解析为对应的SQL描述对象
 * 
 * @author taoping
 *
 * @param <T>
 */
public interface JPAMappingBuilder {

	/**
	 * 将实体对象解析为对应的SQL描述对象
	 * 
	 * @param entity
	 * @return
	 * @throws Exception
	 */
	<T extends Identifiable<?>> List<SqlBuildEntry> build(T entity) throws Exception;
}
